<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" >
<script type="text/javascript" src="resources/js/ext-base.js"></script>
<script type="text/javascript" src="resources/js/ext-all.js"></script>
<script type="text/javascript" src="resources/js/skin.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var tb=new Ext.Toolbar('toolbar-div');//创建一个工具条   
  
  
  
        tb.add(   
  
            '  ',   
  
            '  ',   
  
            '  ',   
  
            '<b>sam.zhang<b>',   
  
            '  ',   
  
            '  ',   
  
            '2008-11-10 11:20 ',   
  
            '  ',   
  
            '  ',   
  
            '这是第35次登陆系统',   
  
            '->',   
  
            ' ',   
  
            '',   
  
            '->',   
  
            new Ext.Toolbar.Button({   
  
               text: 'WEbQQ',   
  
               handler: function(){   
  
                alert("正在启动webQQ,请稍候...");   
  
               }   
  
           }),   
  
           '-',   
  
            new Ext.Toolbar.Button({   
  
               text: '更改密码',   
  
               handler: function(){   
  
                alert("你没有权限更改密码.");   
  
               }   
  
           }),   
  
           '-',   
  
           new Ext.Toolbar.Button({   
  
               text: '注销',   
  
               handler: function(){   
  
                    window.location='ask123_logout';   
  
               }   
  
           }),   
  
           '-',   
  
                  //...调用控件对象就可以了，easy吧？   
  
           new Ext.ux.ThemeCycleButton   
  
        );  
});
</script>
<div id="toolbar-div"></div>
</body>
</html>